tmem: cleanup: refactor the alloc/free path
authorBob Liu <lliubbo@gmail.com>
Thu, 12 Dec 2013 11:05:09 +0000 (19:05 +0800)
committerJan Beulich <jbeulich@suse.com>
Wed, 8 Jan 2014 07:53:58 +0000 (08:53 +0100)
commit804ff77a93e5207fe12271d16fae81d17c5c72f5
tree6f2d17b54721b35b1bcd4737938dd9b4f6b16f94
parentb67497054e25da9f68879d3ca2db9d0b5c1bba7d
tmem: cleanup: refactor the alloc/free path

There are two allocate path for each persistant and ephemeral pool.

This path try to refactor those allocate/free functions with better name and
more readable call layer. Also added more comment.

Signed-off-by: Bob Liu <bob.liu@oracle.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/common/tmem.c
xen/common/tmem_xen.c
xen/include/xen/tmem_xen.h